package net.wanho.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * Author：汤小洋
 * Date：2024-01-10 10:25
 * Description：<描述>
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class User implements Serializable {
    @Excel(name = "用户id",orderNum = "0")
    private Integer id;

    @Excel(name = "用户名",orderNum = "1")
    private String username;

    private String password;

    @Excel(name = "年龄",orderNum = "2")
    private Integer age;

    @Excel(name = "邮箱",orderNum = "3",width = 30)
    private String email;

    @Excel(name = "创建时间",orderNum = "4",width = 30, format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @Excel(name = "是否删除",orderNum = "5",replace = {"正常_0","删除_1"})
    private Integer isDeleted;
}
